<!--{eval 
	$_G[home_tpl_titles] = array(lang('userapp/template', 'app_management'));
}-->
<!--{template common/header}-->

<!--{if $_GET['ac'] == 'deleteapp'}-->

	<h3 class="flb">
		<em id="return_$_G[gp_handlekey]">{lang remove_app}</em>
		<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_G[gp_handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
	</h3>
	<form id="editcommentform_{$cid}" name="editcommentform_{$cid}" method="post" autocomplete="off" action="userapp.php?mod=manage&my_suffix=%2Fuserapp%2Funinstall%3FappId%3D$_G[gp_appid]">
		<input type="hidden" name="referer" value="$_G[referer]" />
		<input type="hidden" name="delappsubmit" value="true" />
		<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_G[gp_handlekey]" /><!--{/if}-->
		<input type="hidden" name="formhash" value="{FORMHASH}" />
		<div class="c">
			{lang remove_app_message}
		</div>
		<p class="o pns">
			<button type="submit" name="delappsubmit_btn" id="delappsubmit_btn" value="true" class="pn pnc"><strong>{lang determine}</strong></button>
		</p>
	</form>
	
<!--{elseif $_GET['ac'] == 'menu'}-->

<div id="pt" class="wp"><a href="index.php" class="nvhm">$_G[setting][bbname]</a> &rsaquo; <a href="$_G[setting][navs][5][filename]">$_G[setting][navs][5][navname]</a></div>
<div id="ct" class="wp cl w n">
	<div class="ch">
		<label class="wx"><a href="$_G[setting][navs][5][filename]">$_G[setting][navs][5][navname]</a></label>
	</div>
	
	<div class="mn">
		<div class="bm">
			<h1 class="mt"><img alt="app" src="static/image/common/appsetting.gif"> {lang app_management}</h1>
		</div>
		<hr class="l" />
		<div class="myset cl">
			<div class="mgapp" id="applistcontent">
				<h3 class="pbn bbda cl">
					<a href="userapp.php?mod=manage&my_suffix=%2Fapp%2Flist" class="y xg1 xw0">{lang app_add}</a>
					{lang my_app}
				</h3>
				<!--{if $my_userapp}-->
				<script type="text/javascript" src="{$_G[setting][jspath]}home_drag.js?{VERHASH}"></script>
				<form id="userappform" name="userappform" method="post" autocomplete="off" action="userapp.php?mod=manage&ac=menu">
					<input type="hidden" name="formhash" value="{FORMHASH}" />
					<input type="hidden" name="ordersubmit" value="true" />
					
					<div id="Drags0">
						<div id="DragContainer0">
							<!--{loop $my_userapp $key $value}-->
							<div id="$key" class="apps dragable">
								<span class="y">
									<a href="userapp.php?mod=manage&my_suffix=%2Fuserapp%2FmodifyPrivacy%3FappId%3D$value[appid]">{lang edit_settings}</a>
									<a href="userapp.php?mod=manage&ac=deleteapp&appid=$value[appid]" id="delete_$value[appid]" onclick="showWindow(this.id, this.href, 'get', 0)">{lang remove}</a>
								</span>
								<img src="http://appicon.manyou.com/icons/$value[appid]" /> 
								<a href="userapp.php?mod=app&id=$value[appid]">$value[appname]</a>(<a href="userapp.php?mod=manage&my_suffix=%2Fuserapp%2Fabout%3FappId%3D$value[appid]" target="_blank">{lang introduction}</a>)
								<input type="hidden" name="order[]" value="$value[appid]">
							</div>
							<!--{/if}-->
						</div>
					</div>
					<p class="mtm mbm">
						{lang left_menu_view_num}
						<select name="menunum" class="ps">
							<option value="5"$menunum[5]>5</option>
							<option value="10"$menunum[10]>10</option>
							<option value="15"$menunum[15]>15</option>
							<option value="20"$menunum[20]>20</option>
							<option value="25"$menunum[25]>25</option>
							<option value="30"$menunum[30]>30</option>
							<option value="999"$menunum[999]>{lang all}</option>
						</select>
					</p>
					<p class="pns">
						<button type="submit" name="ordersubmitbtn" class="pn"><em>{lang save_settings}</em></button>
					</p>
						
					
				</form>
				<script type="text/javascript">init_drag2();</script>
				<!--{/if}-->
			</div>

			<div class="mgapp">
				<h3 class="pbn bbda">{lang default_app}</h3>

				<!--{loop $my_default_userapp $value}-->
				<div class="apps">
					<span class="y">
						<a href="userapp.php?mod=manage&my_suffix=%2Fuserapp%2FmodifyPrivacy%3FappId%3D$value[appid]">{lang edit_settings}</a>
						<a href="userapp.php?mod=manage&ac=deleteapp&appid=$value[appid]" id="delete_$value[appid]" onclick="showWindow(this.id, this.href, 'get', 0)">{lang remove}</a>
					</span>
					<img src="http://appicon.manyou.com/icons/$value[appid]" /> 
					<a href="userapp.php?mod=app&id=$value[appid]">$value[appname]</a>
				</div>
				<!--{/loop}-->

			</div>

		</div>

		<div class="bm note xg1">
			<h4>{lang use_assistant}</h4>
			{lang user_assistant_message}
		</div>

	</div>
	
	<div class="sd">
		{subtemplate userapp/userapp_menu_list}
	</div>
</div>
<!--{else}-->
<div id="pt" class="wp"><a href="index.php" class="nvhm">$_G[setting][bbname]</a> &rsaquo; <a href="$_G[setting][navs][5][filename]">$_G[setting][navs][5][navname]</a></div>
<div id="ct" class="wp cl w n">
	<div class="ch">
		<label class="wx"><a href="$_G[setting][navs][5][filename]">$_G[setting][navs][5][navname]</a></label>
	</div>
	
	<div class="mn">
	
		<script language="JavaScript" src="{$_G[setting][jspath]}home_cookie.js?{VERHASH}"></script>
		<script type="text/javascript" src="http://static.manyou.com/scripts/my_iframe.js"></script>
		<script language="javascript">
		var prefixURL = "$my_prefix";
		var suffixURL = "$my_suffix";
		var queryString = '';
		var url = "{$url}";
		var oldHash = null;
		var timer = null;
		var server = new MyXD.Server("ifm0");
		server.registHandler('iframeHasLoaded');
		server.registHandler('setTitle');
		server.start();
		
		function iframeHasLoaded(ifm_id) {
				MyXD.Util.showIframe(ifm_id);
				//document.getElementById(ifm_id).style.display = '';
				document.getElementById('loading').style.display = 'none';
		}
		
		function  htmlspecialchars_decode(string) {
			string = string.toString();
			string = string.replace(/&amp;/g, '&');
			string = string.replace(/&lt;/g, '<');
			string = string.replace(/&gt;/g, '>');
			string = string.replace(/&quot;/g, '"');
			string = string.replace(/&#039;/g, "'");
			return string;
		
		}
		
		function setTitle(x) {
			<!--{eval $my_site_name=htmlspecialchars($_G['setting']['sitename'], ENT_QUOTES);}-->
			var my_site_name = htmlspecialchars_decode('{$my_site_name}');
		
			x = htmlspecialchars_decode(x);
			document.title = x + ' - <!--{if $space}--><!--{eval echo daddslashes($space[username])}--> - <!--{/if}-->' + my_site_name + ' - Powered by UCenter Home';
		}
		
		</script>
		<iframe id="ifm0" frameborder="0" width="810" scrolling="no" height="810" style="position:absolute; top:-5000px; left:-5000px;" src="{$url}"></iframe>
		
		
		<div id="mx2note" style="display:none; padding:150px 0 150px 0; margin:1px; text-align:center; background-color:#FFFFBF;  font-size:12px; line-height:14px; color:#DB0000; letter-spacing:1px;">
			{lang no_maxthon2_message}
		</div>
		<div id="loading" style="display:block; padding:100px 0 100px 0;text-align:center;color:#999999;font-size:12px;">
			<img src="{IMGDIR}/loading.gif" alt="loading..." align="absmiddle" />  {lang page_loading}
		</div>
	</div>
	
	<div class="sd">
		{subtemplate userapp/userapp_menu_list}
	</div>
</div>
<!--{/if}-->
{template common/footer}
